package com.st.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.st.domain.SysRole;
import com.st.domain.SysUser;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author shent
 */
@Mapper
public interface SysUserMapper extends BaseMapper<SysUser> {
    SysUser selectByUsername(String username);

    List<SysRole> selectRolesById(Long id);

    List<String> selectResourcesCodeByUserId(Long id);

    SysUser selectUsernameUseful(String username);
}